GBML manual / Drawing

flip_y

Mirrors the sprite top-to-bottom. Combines with a negative yscale by XOR, not by overriding it - both true at once cancels back to unmirrored.

Syntax

flip_y: bool

Description

Mirrors the sprite top-to-bottom, the vertical counterpart to flip_x - a reflection in water, or a ceiling-walking enemy reusing a floor-walking sheet upside down.

Example

flip_y = (gravity_dir == 90);

Flips this instance upside down whenever gravity_dir points straight up (90 degrees) instead of the default straight down (270) - a ceiling-walker reusing the same floor-walking sheet either way up.

See also: yscale